<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>多个数求最大值</title>
</head>
<body>
    <script>
     
        // function max1(){
            //maxValue 最大值    arguments参数
            function max(maxValue,arguments){
                return maxValue>arguments?maxValue:arguments
            

                var arguments=[2,0,10,301,200,10]
                for(var i = 1;i < arguments.length;i++){
                    var maxValue = arguments[0];
                    console.log(maxValue);
                    Value = Math.max(maxValue,arguments[i]);
                }


            }
            console.log( Value);
        // }
        // var max= max1[400,105,2,301,200,10]
        // console.log(max);
    </script>
</body>
</html>